package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.SafetyTrainingWorkersDao;
import com.site.wisdom_construction.entity.personnelModule.SafetyTrainingWorkers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/5
 * @Description
 */
@Service
public class SafetyTrainingWorkersService implements SafetyTrainingWorkersDao {
    @Autowired
    private SafetyTrainingWorkersDao safetyTrainingWorkersDao;

    @Override
    public int insertSafetyTrainingWorkers(Map map) {
        return safetyTrainingWorkersDao.insertSafetyTrainingWorkers(map);
    }

    @Override
    public int deleteSafetyTrainingWorkers(Map map) {
        return safetyTrainingWorkersDao.deleteSafetyTrainingWorkers(map);
    }

    @Override
    public int deleteSafetyTrainingWorkersById(Map map) {
        return safetyTrainingWorkersDao.deleteSafetyTrainingWorkersById(map);
    }

    @Override
    public List<SafetyTrainingWorkers> findSafetyTrainingWorkersById(Map map) {
        return safetyTrainingWorkersDao.findSafetyTrainingWorkersById(map);
    }

    @Override
    public List<Integer> findSafetyTrainingWorkersBySafetyTrainingId(Map map) {
        return safetyTrainingWorkersDao.findSafetyTrainingWorkersBySafetyTrainingId(map);
    }

    @Override
    public List<SafetyTrainingWorkers> findSafetyTrainingWorkersByPage(Map map) {
        return safetyTrainingWorkersDao.findSafetyTrainingWorkersByPage(map);
    }

    @Override
    public long Total(Map map) {
        return safetyTrainingWorkersDao.Total(map);
    }
}
